package com.activiti.dao.model;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;
import java.util.List;

@Entity
@Table(name="activiti_taskinfo", schema="erp")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Activiti_TaskInfo implements java.io.Serializable {

    //serialVersionUID
    private static final long serialVersionUID = 1L;

    //Constructors
    public Activiti_TaskInfo() {
    }

    //Fields

    //主键
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    @Column(name = "id", length = 11)
    private Integer id;

    public Integer getdId() {
        return this.id;
    }
    public void setdId(Integer id) {
        this.id = id;
    }

    //任务ID
    @Column(name = "task_id", length = 11)
    private Integer task_id;

    public Integer getTask_id() {
        return this.task_id;
    }
    public void setTask_id(Integer task_id) {
        this.task_id = task_id;
    }

    //流程实例ID
    @Column(name = "proc_inst_id", length = 64)
    private String proc_inst_id;

    public String getProc_inst_id() {
        return this.proc_inst_id;
    }
    public void setProc_inst_id(String proc_inst_id) {
        this.proc_inst_id = proc_inst_id;
    }

    //流程名称
    @Column(name = "proc_name",length = 255)
    private String proc_name;

    public String getProc_name() {
        return this.proc_name;
    }
    public void setProc_name(String proc_name) {
        this.proc_name = proc_name;
    }

    //创建人
    @Column(name = "staff_code",  length = 45)
    private String staff_code;

    public String getStaff_code() {
        return this.staff_code;
    }
    public void setStaff_code(String staff_code) {
        this.staff_code = staff_code;
    }

    //所属公司编码
    @Column(name = "company_code",  length = 45)
    private String company_code;

    public String getCompany_code() {
        return this.company_code;
    }
    public void setCompany_code(String company_code) {
        this.company_code = company_code;
    }

    //所属部门
    @Column(name = "department_code", length = 45)
    private String department_code;

    public String getDepartment_code() {
        return this.department_code;
    }
    public void setDepartment_code(String department_code) {

        this.department_code = department_code;
    }

    //创建时间
    @Column(name = "create_time")
    private Date create_time;

    public Date getCreate_time() {
        return this.create_time;
    }
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    //状态  1-待审批 2-审批中 3-驳回 4-完成
    @Column(name = "status",length = 1)
    private String status;

    public String getStatus() {
        return this.status;
    }
    public void setStatus(String status) {
        this.status = status;
    }




}